-- GENERATED SPELL FOR [Rhunok's Tormentor] --


function spell0_28575(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38556,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28575', 1500, 1)
end

function spell1_28575(pUnit, Event) --@Torment,n/a--
pUnit:FullCastSpellOnTarget(54526,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28575', 7000, 1)
end

function Sorts_28575(pUnit, Event)
local choix_sorts_28575 = math.random(0, 1)
if choix_sorts_28575 == 0 then
pUnit:RegisterEvent('spell0_28575', 1, 1)
end
if choix_sorts_28575 == 1 then
pUnit:RegisterEvent('spell1_28575', 1, 1)
end
end

function mob28575_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28575', math.random(1500, 3000), 1)
end

function mob28575_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28575_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28575_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28575, 1, 'mob28575_Action')
RegisterUnitEvent(28575, 2, 'mob28575_Leave')
RegisterUnitEvent(28575, 3, 'mob28575_Kill')
RegisterUnitEvent(28575, 4, 'mob28575_Die')
